﻿@model IEnumerable<SGC_CarteraClientes.Models.CA_PROSPECTO_PRELIM>

@{
    ViewBag.Title = "Index";
}

<h2>Prospectos Preliminares</h2>
@if (TempData["message"] != null && TempData["message"].ToString().Trim()!="")
{
@Html.Raw(TempData["message"].ToString())
//@TempData["message"] = null;
} 
<p>
    @*@Html.ActionLink("Nuevo Prospecto Preliminar", "Create")*@
         @Html.ActionLink("Volver", "../")
</p>
<table class="tblSort">
    <thead>
    <tr>
        <th>
            Nro Prospecto
        </th>
        <th>
            Ap. Paterno
        </th>
        <th>
            Ap. Materno
        </th>
        <th>
            Nombre
        </th>
        <th>
            Estado
        </th>
        <th>
            Nro. Doc
        </th>
        <th></th>
    </tr>
</thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.PROSP_ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PROSP_APPAT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PROSP_APMAT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PROSP_NOMS)
        </td>
        <td>
            @if (item.PROSP_STS == 1) { 
              <img src="/Images/active.png"  width="20px" />   
            }
            else {
              <img src="/Images/inactive.png"  width="20px" />   
            }
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PROSP_NDOC)
        </td>
        <td>
            @Html.ActionLink("Modificar", "Edit", new {  id=item.PROSP_ID  }) |
            @Html.ActionLink("Ver", "Details", new {  id=item.PROSP_ID  }) |
            @Html.ActionLink("Eliminar", "Delete", new {  id=item.PROSP_ID  })
        </td>
    </tr>
}
   </tbody>  
</table>
<table border="1" rules="all">
    <caption><strong>Leyenda</strong></caption>
    <tr>
        <td align="center"><img src="/Images/active.png"  width="15px" />  </td><td>Activo</td>
    </tr>
     <tr>
        <td align="center"><img src="/Images/inactive.png"  width="15px" />  </td><td>Inactivo</td>
    </tr>
</table>
<table>
    <tr>

        <td>
@using (Html.BeginForm("ListaProspecto","EvalProsp", FormMethod.Post))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Procesos</legend>
        <p>
            <input type="submit" value="Captura Lista de Gestion de Prospectos" />
        </p>
    </fieldset>
}
            </td>

        <td>
@using (Html.BeginForm("ListaConvenio","EvalProsp", FormMethod.Post))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Procesos</legend>
        <p>
            <input type="submit" value="Captura Lista Convenios" />
        </p>
    </fieldset>
}
            </td>
        </tr>
</table>